'''Main script to run Nose unit tests.'''

__copyright__ = "Copyright (c) 2008 Kevin J Bluck"
__version__   = "$Id: run-tests.py 84 2008-12-07 21:46:18Z kevin.bluck $"

if __name__ == "__main__":

    import logging
    import os.path
    import sys
    import nose

    # Suppress logging during unit tests.
    logging.disable(100)

    # Ensure project source packages are on the path.
    sys.path.append(os.path.abspath(os.path.dirname(__file__)))
    nose.run(argv=["-d","--where=."])
